﻿namespace SERFLITEMAX20.Viewer
{
    using System;
    using System.Drawing;

    public class clsAlert
    {
        public int flash = Color.Orange.ToArgb();
        public int interval = 2;
        public int orig = Color.Orange.ToArgb();
        public int origvert = 5;
        public int vert = 5;

        public int CalcFlash(int defaultcolor)
        {
            int num = defaultcolor;
            if (this.interval > 0)
            {
                this.interval--;
                return num;
            }
            this.interval = 1;
            if (this.flash == this.orig)
            {
                this.flash = defaultcolor;
            }
            else
            {
                this.flash = this.orig;
            }
            return this.flash;
        }
    }
}

